﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="GAIA_IU.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <h2>Estudio de Terreno        </h2>
        <p>
            Ingrese la informaci&oacute;n solicitada.
        </p>
    
        <asp:Label ID="aviso_label" runat="server" Text=""></asp:Label>     
    
        <span class="failureNotification">
            <asp:Literal ID="FailureText" runat="server"></asp:Literal>
        </span>
        <asp:ValidationSummary ID="TerrenoValidationSummary" runat="server" CssClass="failureNotification" 
                ValidationGroup="TerrenoValidationGroup"/>
    
        <div class="formMantenimiento">
            <fieldset class="login">
                   <legend>Buscar finca</legend>
                    <asp:DropDownList ID="tipo_busqueda" runat="server">
                        <asp:ListItem Value="nombre">Nombre</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txt_busqueda" runat="server"></asp:TextBox>
                &nbsp;
                    <asp:Button ID="btn_busqueda" runat="server" Text="Buscar" 
                        onclick="btn_busqueda_Click" />
                
                  
                <p class="submitButton">
                    &nbsp;</p>

                    <div id="estudio">
                        <div>
                            <asp:GridView ID="GridView_Terrenos" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="Id,Nombre" GridLines="None" 
                                AllowPaging="True" 
                                OnPageIndexChanging="gridView_PageIndexChanging" 
                                onselectedindexchanged="GridView_Terrenos_SelectedIndexChanged" 
                                CssClass="gridView" Width="100%">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="Id" 
                                        SortExpression="Id" />
                                    <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                                        SortExpression="Nombre" />
                                    <asp:CommandField AccessibleHeaderText="Seleccionar" 
                                        ShowSelectButton="True" SelectText="Seleccionar Finca" />
                                </Columns>
                                <PagerStyle BackColor="#2F6590" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#65C0ED" Font-Bold="True" ForeColor="#006699" />
                                <HeaderStyle BackColor="#808080" Font-Bold="False" ForeColor="White" HorizontalAlign="Left"/>
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#0B4B81" />
                            </asp:GridView> 
                        </div>

                        <div>
                            <asp:GridView ID="GridView_Parcelas" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="Id,Nombre,Tamano" GridLines="None" 
                                onselectedindexchanged="GridView_Parcelas_SelectedIndexChanged" 
                                CssClass="gridView" Width="100%">
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="Id" HeaderText="Id" 
                                        SortExpression="Id" />
                                    <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                                        SortExpression="Nombre" />
                                    <asp:BoundField DataField="Tamano" HeaderText="Tamaño" 
                                        SortExpression="Tamano" />
                                    <asp:CommandField AccessibleHeaderText="Seleccionar" 
                                        ShowSelectButton="True" SelectText="Seleccionar Parcela" />
                                </Columns>
                                <PagerStyle BackColor="#2F6590" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#65C0ED" Font-Bold="True" ForeColor="#006699" />
                                <HeaderStyle BackColor="#808080" Font-Bold="False" ForeColor="White" HorizontalAlign="Left"/>
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#0B4B81" />
                            </asp:GridView> 
                        </div>

                    </div>

                </fieldset>   
                <p class="submitButton">
                    &nbsp;</p>

        
        </div>

        <div class="menuMantenimiento">
            <fieldset class="login">
                <legend>Opciones:</legend>
                <ul>
                    <li><a href="act_terrenos.aspx">Actualizar Finca</a></li>
                </ul>
            </fieldset>
        </div>

        
        <div id="GridExcel" class="formMantenimiento">
            <asp:FileUpload ID="FileUpload1" runat="server" /><br />
            <br />
            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 
             Text="Upload File" />&nbsp;<br />
            <br />
            <asp:Label ID="Label1" runat="server"></asp:Label>

            <%--<asp:RegularExpressionValidator 
             id="RegularExpressionValidator1" runat="server" 
             ErrorMessage="Sólo archivos con extensión .xls o .xlsx son permitidos!" 
             ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))
                +(.xls|.xlsx)$" 
             ControlToValidate="FileUpload1"></asp:RegularExpressionValidator>
            <br />
            <asp:RequiredFieldValidator 
             id="RequiredFieldValidator1" runat="server" 
             ErrorMessage="Por favor seleccione la el documento de excel..." 
             ControlToValidate="FileUpload1"></asp:RequiredFieldValidator>--%>
       
            <asp:GridView ID="GridView1" runat="server">
            </asp:GridView>
            <p class="submitButton">
                    &nbsp;</p>
        </div>
</asp:Content>
